package com.vogue.supplymall.order.domain.service;

import com.vogue.supplymall.common.domain.dto.CommentInfo;
import com.vogue.supplymall.order.domain.model.CommentDetail;

import java.util.List;
import java.util.Map;

public interface CommentDetailService extends BaseService<CommentDetail, Long>{

    /**
     * 查看买家 评价详情
     * @param commentInfo
     * @return
     */
    List<Map<String, Object>> findBuyerCommentDetail(CommentInfo commentInfo);

    /**
     * 查看卖家 评价详情
     * @param commentInfo
     * @return
     */
    List<Map<String, Object>> findSellerCommentDetail(CommentInfo commentInfo);

    /**
     * 自动更新买家好评(默认30天)
     */
    void updateCommentText();
}
